<template>
  <div>
    <div> {{ value }} </div>
    <div> {{ abc }} </div>
    <button @click="fixFn">修改</button>
  </div>
</template>

<script>
export default {
  name: 'MyMsg',
  props: {
    value: {
      type: String,
      default: ''
    },
    abc: {
      type: String,
      defaults: ''
    }
  },
  methods: {
    fixFn() {
      this.$emit('input', '你好啊')
      this.$emit('update:abc', '你来到我的世界')
    }
  }
}
</script>

<style>

</style>
